home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
xes120.lha
/
XES
/
REXX
/
Roman.xdme
< prev
next >
Wrap
Text File
|
1994-11-09
|
379b
|
21 lines
/* Roman.dme © 1991 Fergus Duniho */
/* Converts Arabic Numerals to Roman */
Arg A
R = word("i ii iii iv v vi vii viii ix",A//10)
A = A % 10
If A > 0 Then Do
R = Word("x xx xxx xl l lx lxx lxxx xc",A//10) || R
A = A % 10
End
If A > 0 Then Do
R = Word("c cc ccc cd d dc dcc dccc cm",A//10) || R
A = A % 10
End
If A > 0 Then R = Word("m mm mmm",A) || R
Exit R